//
//  AddCoverView.m
//  MIDI
//
//  Created by 邵子凡 on 15/11/25.
//  Copyright © 2015年 QXSX. All rights reserved.
//

#import "AddCoverView.h"
#import "AppConfig.h"

@implementation AddCoverView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self == [super initWithFrame:frame]){
        
        self.backgroundColor = [UIColor whiteColor];
        self.alpha = 0.5;
        
        [UIView animateWithDuration:1 animations:^{
            
            self.frame = CGRectMake(0, 0, kWindowWidth, kWindowHeight);
            
        }];
        
    }
    
    return self;
}

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
{
    
    [self removeFromSuperview];
    
    
}


@end
